home *** CD-ROM | disk | FTP | other *** search
- comment * ===================================================================
-
- Copyright (C) 1989 George A. Stanislav
- All rights reserved
-
- Purpose: Open a DESQview window from a batch file.
-
- To run this program, assembly the code, link it, exe2bin it,
- then copy the .DVP file at the end of the program.
-
- For example to run Opus' oMMM program from a batch file:
-
- MASM DVRUN ;
- LINK DVRUN ;
- EXE2BIN DVRUN DVRUN.COM
- COPY /B DVRUN.COM + OM-PIF.DV OM.COM
- OM
-
- * ===========================================================================
-
- include dvapi.inc
-
- prog segment para public 'CODE'
-
- assume cs:prog, ds:prog, es:prog, ss:prog
-
- org 100h
-
- om proc near
-
- push ds
- pop es
- @call dvpresent
- test ax, ax
- jz nodv
- mov bx, 416
- lea di, pif
- @call newproc
-
- mov ax, 4c00h
- int 21h
- nodv:
- lea dx, msg
- mov ah, 9
- int 21h
- mov ax, 4c01h
- int 21h
-
- msg db 13, 'DESQview not loaded. ', 13, 10, '$'
- pif:
- om endp
- prog ends
- end om
-
-